package com.xunfang.bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author yellow Doctor
 * @date 2025-09-22
 * @desc https://blog.csdn.net/hekai7217
 */
@Data
public class Student {

    @Value("${my.student.name}")  //读取yaml中的配置
    private String name;

    @Value("${my.student.age}")
    private Integer age;

}
